import * as actions from '../actions'

const ordersInitialState = {data:[], page: 1}
const orders = (state = ordersInitialState, action) => {
  switch (action.type) {
    case actions.SET_ORDERS:
      return {
        ...action.orders
      }
    default:
      return state
  }
}

export default orders